<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="ag" uri="http://www.ag.com/tags/core"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>My JSP 'contact.jsp' starting page</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<style type="text/css">
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	padding:0px;
}

.STYLE1 {
	font-size: 12px
}

.STYLE2 {
	font-size: 12px
}

.STYLE4 {
	font-size: 12px;
	color: #1F4A65;
	font-weight: bold;
}

a:link {
	font-size: 12px;
	color: #06482a;
	text-decoration: none;
}

a:visited {
	font-size: 12px;
	color: #06482a;
	text-decoration: none;
}

a:hover {
	font-size: 12px;
	color: #FF0000;
	text-decoration: underline;
}

a:active {
	font-size: 12px;
	color: #FF0000;
	text-decoration: none;
}

.STYLE7 {
	font-size: 12px
}
</style>		
		<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
		<script type="text/javascript">
$(document).ready(function () {	
	$('.savePlan').click(function () {
		redirectPage("lzm/save_plan.jsp");		
	});	
	$('.noreport').click(function () {
		redirectPage("lzm/find_plan_no_report.jsp");		
	});
	$('.backLast').click(function () {
		//redirectPage("admin/pmsn_manage.jsp");预留页面
		//redirectPage("admin/role_manage.jsp");
		parent.location.href="/ag/lzm/plan_main.jsp";
	});	
});

/**
 * 实现页面的定向
 * @param url 传入定向的目标URL
 */
function redirectPage(url){
    $('#mainFrame', window.parent.document).attr("src", url);
	//parent.location.href=url;
}
		</script>
		<script type="text/JavaScript">
<!--
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
	</head>

	<body>
		<table width="100%" border="0" align="center" cellpadding="0"
			cellspacing="0">
			<tr valign="top">
				<td>
					<table width="100%" border="0" align="center" cellpadding="0"
						cellspacing="0">
						<tr>
							<td valign="top">
								<table width="100%" border="0" cellspacing="0" cellpadding="0"
									style="table-layout: fixed">
									<tr>
										<td valign="top"
											style="background-image: url(images/main_23.gif); background-repeat: repeat-x;">
											<table width="100%" border="0" align="center" cellpadding="0"
												cellspacing="0">
												<tr>
												
													<ag:authorize permission="2240">
													<td>
														<div align="center">
															<a href="javascript:;"><img src="lzm/images/weave_plan.png"
																	name="smsImage" width="40" height="40" border="0"
																	class="savePlan"
																	onmouseover="MM_swapImage('smsImage','','images/role.png',1)"
																	onmouseout="MM_swapImgRestore()" /> </a>
														</div>
													</td>
													</ag:authorize>
													
													
														<ag:authorize permission="2211">
													<td>
														<div align="center">
															<a href="javascript:;"><img src="lzm/images/report_plan.png"
																	name="smsImage" width="40" height="40" border="0"
																	class="noreport"
																	onmouseover="MM_swapImage('smsImage','','images/pmsn.png',1)"
																	onmouseout="MM_swapImgRestore()" /> </a>
														</div>
													</td>
													</ag:authorize>
													
													
														
													<%--	
													<td>
														<div align="center">
															<a href="javascript:;"><img src="lzm/images/record_plan.png"
																	name="smsImage" width="40" height="40" border="0"
																	class="backLast"
																	onmouseover="MM_swapImage('smsImage','','images/pmsn.png',1)"
																	onmouseout="MM_swapImgRestore()" /> </a>
														</div>
													</td>
													--%>
												</tr>
												<tr>
													<ag:authorize permission="2211">
													<td height="25">
														<div align="center" class="STYLE2">
															<a href="javascript:;" class="savePlan">新增预案</a>
														</div>
													</td>
													</ag:authorize>
													
													
														<ag:authorize permission="2212">
													<td>
														<div align="center" class="STYLE2">
															<a href="javascript:;" class="noreport">维护预案</a>
														</div>
													</td>
													</ag:authorize>
													
													
													
											<%--		<td>
														<div align="center" class="STYLE2">
															<a href="javascript:;" class="backLast">返回上级</a>
														</div>
													</td>
											--%>	
													
												</tr>
											</table>
										</td>
									</tr>
								</table>
							</td>
						</tr>
					</table>
				</td>
			</tr>
		</table>
	</body>
</html>